home *** CD-ROM | disk | FTP | other *** search
- *** /u/markd/tmp/lightsource.c Fri Oct 30 20:28:15 1992
- --- lightsource.c Fri Oct 30 08:40:36 1992
- ***************
- *** 21,26
- **/
-
- #include <stdio.h>
-
- #include <geometric.h>
- #include <lightsource.h>
-
- --- 21,28 -----
- **/
-
- #include <stdio.h>
- + #include <math.h>
- + #include <values.h>
-
- #ifndef MAXFLOAT
- # define MAXFLOAT 1.0e100
- ***************
- *** 22,27
-
- #include <stdio.h>
-
- #include <geometric.h>
- #include <lightsource.h>
- #include <sipp.h>
-
- --- 24,33 -----
- #include <math.h>
- #include <values.h>
-
- + #ifndef MAXFLOAT
- + # define MAXFLOAT 1.0e100
- + #endif
- +
- #include <geometric.h>
- #include <lightsource.h>
- #include <sipp.h>
- ***************
- *** 137,142
- lp->active = TRUE;
- lp->next = lightsrc_stack;
- lightsrc_stack = lp;
- }
-
-
-
- --- 143,150 -----
- lp->active = TRUE;
- lp->next = lightsrc_stack;
- lightsrc_stack = lp;
- +
- + return lp;
- }
-
-
- ***************
- *** 429,435
- lp->shadow.d_map = (float *)smalloc(depthmap_size * depthmap_size
- * sizeof(float));
- for (i = 0; i < depthmap_size * depthmap_size; i++) {
- ! lp->shadow.d_map[i] = (float)1.0e100;
- }
- }
- }
-
- --- 437,443 -----
- lp->shadow.d_map = (float *)smalloc(depthmap_size * depthmap_size
- * sizeof(float));
- for (i = 0; i < depthmap_size * depthmap_size; i++) {
- ! lp->shadow.d_map[i] = (float)MAXFLOAT;
- }
- }
- }
-